package org.grow.leave.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.access.ConfigAttribute;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "RoleNotice")
public class RoleNotice implements ConfigAttribute {
    @TableId(value = "roleNoticeId", type = IdType.AUTO)
    private Integer roleNoticeId;

    @TableField(value = "roleName")
    private String roleName;

    @TableField(value = "description")
    private String description;

    @Override
    public String getAttribute() {
        return roleName;
    }
}